home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / iimage2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.0 KB  |  56 lines

  1. /* Copyright (C) 1997, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: iimage2.h,v 1.2 2000/09/19 19:00:44 lpd Exp $ */
  20. /* Level 2 image operator support */
  21. /* Requires gsiparam.h */
  22.  
  23. #ifndef iimage2_INCLUDED
  24. #  define iimage2_INCLUDED
  25.  
  26. /* These procedures are exported by zimage2.c for other modules. */
  27.  
  28. /*
  29.  * Define a structure for image parameters other than those defined
  30.  * in the gs_*image*_t structure.
  31.  */
  32. typedef struct image_params_s {
  33.     bool MultipleDataSources;
  34.     ref DataSource[gs_image_max_components];
  35.     const float *pDecode;
  36. } image_params;
  37.  
  38. /* Extract and check parameters for an image. */
  39. int data_image_params(P6(const ref *op, gs_data_image_t *pim,
  40.              image_params *pip, bool require_DataSource,
  41.              int num_components, int max_bits_per_component));
  42. int pixel_image_params(P5(i_ctx_t *i_ctx_p, const ref *op,
  43.               gs_pixel_image_t *pim, image_params * pip,
  44.               int max_bits_per_component));
  45.  
  46. /*
  47.  * Process an image that has no explicit source data.  This isn't used by
  48.  * standard Level 2, but it's a very small procedure and is needed by
  49.  * both zdps.c and zdpnext.c.
  50.  */
  51. int process_non_source_image(P3(i_ctx_t *i_ctx_p,
  52.                 const gs_image_common_t * pim,
  53.                 client_name_t cname));
  54.  
  55. #endif /* iimage2_INCLUDED */
  56.